package org.cupk2.auth.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.NoArgsConstructor;

/**角色
 */
@Data
@NoArgsConstructor
public class PostDto {

   
    private String id;
   
    private String ctime;
   
    private String etime;
   
    private String euserkey;
   
    private String cuserkey;
   
    private String state;
   
    @Size(min = 0, max = 4096, message = "{cupk2.validate.template.size}")
    private String note;
    @NotBlank(message = "{cupk2.validate.template.notnull}")
    @Size(min = 0, max = 256, message = "{cupk2.validate.template.size}")
    private String name;
    @NotBlank(message = "{cupk2.validate.template.notnull}")
    @Size(min = 0, max = 256, message = "{cupk2.validate.template.size}")
    private String keyid;
}